﻿using System;
using System.Collections.Generic;

namespace _94_自动排序的字典集全_集合
{
    class Program
    {
        static void Main(string[] args)
        {
            SortedDictionary<int, string> 我发哥 = new SortedDictionary<int, string>();

            我发哥[20] = "hook";
            我发哥[5] = "book";
            我发哥[32] = "look";
            我发哥[3] = "disk";
            我发哥[12] = "list";
            我发哥[7] = "foot";


            Console.WriteLine("输出集合中每个项设定的key是规律的，添加字典集合后会自动完成排序.");
            foreach (var item in 我发哥)
            {
                Console.WriteLine("{0}-{1}\n", item.Key, item.Value);
            }

        }
    }
}
